﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ES.Client
{
    public class DocMappingAttribute : System.Attribute
    {
        public string Index { get; set; }

        public string DocType { get; set; }

        /// <summary>
        /// 映射实体和ES文档
        /// </summary>
        /// <param name="index">ElasticSearch index name</param>
        /// <param name="docType">ElasticSearch document type name</param>
        public DocMappingAttribute(string index, string docType)
        {
            this.Index = index;
            this.DocType = docType;
        }
    }
}
